<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title>出纳账号及开户行</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" charSet="UTF-8" src="js/sorttable.js"></script>
		<script language="JavaScript" charSet="UTF-8" src="js/public.js"></script>		
		<script type="text/javascript" charSet="UTF-8" src="js/date1.js"></script>
		<script type="text/javascript" charSet="UTF-8" src="js/checkboxSelect.js"></script>
		<script type="text/javascript">
			function setnull(){
				var code = document.getElementById('code');
				var name = document.getElementById('name');
				alert(code);
					alert("123456");
					code.innerText="123" ;
					name.innerText="123";		
			}
		
		</script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top"> 
				出纳账号及开户行
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="showAccountbanks.action" method="post" theme="simple" id="delrow" cssClass="submitForm">
			<div id="btn">
				<input type="button" value="新增" onClick="addAction('addInputAccountbank')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="修改" onClick="updateAction('updateAccountbank')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
				<input type="button" value="删除" onClick="deleteAction('deleteAccountbank')" onFocus="this.blur()"
					onmouseover="this.className='btnover'"
					onmouseout="this.className='btnout'" class="btnsize" />
			</div>
			<div id="info_main">
				<div id="select">
					<hr>
					<table>
						<tr>
							<td>
								代码&nbsp;
							</td>
							<td>
								
								<s:textfield name="accountbankModel.openAccountBankCode" size="12" id="code"></s:textfield>
								&nbsp;&nbsp;&nbsp;
							</td>
							<td>
								名称&nbsp;
							</td>
							<td>
								<s:textfield name="accountbankModel.openAccountBankName" size="12" id="name"></s:textfield>							
								&nbsp;&nbsp;&nbsp;
							</td>
						</tr>
					</table>
				</div>
				<div class="sele">
					
					<input type="submit" value="查询" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize" />
					<input type="reset" value="重置" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize"/>					
						<hr>
				</div>
				<!-- 信息显示栏 -->
				<table id="info_table" width="210px"  cellspacing=1px cellpadding=1px  class="">
						<thead>
							<tr>
								<th>
									<input type="checkbox" onClick="selectAll()"/>
								</th>
								<th width="100px">
									代码
								</th>
								<th width="100px">
									名称
								</th>
							</tr>
						</thead>
					</table>
				<div id="info_info1" class="rollTable">
					<table id="info_table" width="210px"  cellspacing=1px cellpadding=1px  class="sortable">
						
						<tbody>
						
							<s:iterator value="accountbankList" status="stat">
								<tr>
									<td>
										<s:checkbox name="rowlist" fieldValue="%{openAccountBankId}"></s:checkbox>
									</td>
									<td width="100px">
										<s:property value="openAccountBankCode"/>
									</td>
									<td width="100px">
										<s:property value="openAccountBankName"/>
									</td>								
								</tr>							
							</s:iterator>	
						</tbody>
						<tfoot>
						</tfoot>
					</table>
					<script language="javascript">  
						//("表格名称","奇数行背景","偶数行背景","点击后背景");
						 mouseclick("info_table","#ffffff","#ffffff","#e6f0fd");
						 //("表格名称","奇数行背景","偶数行背景");
						 //setcolor("t","#ffffff","#ffffff");
					</script>
				</div>					
			</div>
			</s:form>
		</div>
	</body>
</html>		
